// app.js
App({
  onLaunch() {
    // 展示本地存储能力
    const logs = wx.getStorageSync('logs') || []
    logs.unshift(Date.now())
    wx.setStorageSync('logs', logs)

    // 登录
    wx.login({
      success: res => {
        // 发送 res.code 到后台换取 openId, sessionKey, unionId
      }
    })
  },
  globalData: {
    token:'',
    base_candidate_info:{
      id: '',
      id_number: '',
      name: '',
      gender: '',
      birth_date: '',
      ethnicity_id: '',
      political_status_id: '',
      foreign_language_id: '',
      phone: '',
      password: ''
    },
    baoming_candidate_info:{
      id_number: '',
      vocational_college_id: '',
      vocational_major_id: '',
      candidate_type_id: '',
      exam_center_city_id: '',
      exam_major_id: '',
      volunteer_college_id: '',
      volunteer_major_id: '',
      is_certificate_issued: ''
    },
    post_candidate_info:{
      id_number: '',
      address: '',
      postal_code: '',
      recipient_name: ''
    }
  }
})
